package com.example.springboot_zc.controller;

import com.example.springboot_zc.pojo.studentList;
import com.example.springboot_zc.service.studentListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/studentList")
public class studentListController {
    @Autowired
    studentListService studentListService;

    @GetMapping("/select")
    public List<studentList> getAll(){
        return studentListService.list();
    }
}
